package com.siashan.unipay4j.wx.model.enums;

import com.siashan.unipay4j.core.IBaseEnum;

/**
 * 优惠类型枚举
 *
 * @author siashan
 * @version V2.0.1
 * @date 2022-09-23
 **/
public enum PromotionTypeEnum implements IBaseEnum<String> {
    /**
     * 充值型代金券
     */
    CASH("CASH", "充值型代金券"),
    /**
     * 免充值型代金券
     */
    NOCASH("NOCASH", "免充值型代金券"),
    ;


    private String value;
    private String desp;

    PromotionTypeEnum(String value, String desp) {
        this.value = value;
        this.desp = desp;
    }


    public void setValue(String value) {
        this.value = value;
    }

    public void setDesp(String desp) {
        this.desp = desp;
    }

    /**
     * 获取枚举value值
     *
     * @return T
     */
    @Override
    public String getValue() {
        return this.value;
    }

    /**
     * 获取枚举desp值
     *
     * @return desp值
     */
    @Override
    public String getDesp() {
        return this.desp;
    }
}
